import { Injectable } from '@nestjs/common';
import { WsAuthDto } from './webscoket.dto';
import { Server, Socket } from 'socket.io';


@Injectable()
export class WebsocketService {
	async auth(server: Server,authDto: WsAuthDto,client: Socket) {
		//经过某种逻辑后 可加入房间或者后续操作
		//client.join(room_id)
	}

	hello() {
		return `This action returns hello message`;
	}

	remove(id: string) {
		return `This action removes a #${id} websocket`;
	}
}
